/**
 * jims
 */
package com.jims.master.modules.operation.service;

import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;
import com.jims.master.modules.operation.dao.Icd9ItemClassDao;
import com.jims.master.modules.operation.entity.Icd9ItemClass;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * icd9编码对照Service
 * @author zhuq
 * @version 2017-05-12
 */
@Service
@Transactional(readOnly = true)
public class Icd9ItemClassService extends CrudService<Icd9ItemClassDao, Icd9ItemClass> {

	public Icd9ItemClass get(String id) {
		return super.get(id);
	}
	
	public List<Icd9ItemClass> findList(Icd9ItemClass icd9ItemClass) {
		return super.findList(icd9ItemClass);
	}
	
	public Page<Icd9ItemClass> findPage(Page<Icd9ItemClass> page, Icd9ItemClass icd9ItemClass) {
		return super.findPage(page, icd9ItemClass);
	}
	
	@Transactional(readOnly = false)
	public int save(Icd9ItemClass icd9ItemClass) {
		return super.save(icd9ItemClass);
	}
	
	@Transactional(readOnly = false)
	public int delete(Icd9ItemClass icd9ItemClass) {
		return super.delete(icd9ItemClass);
	}

    /**
     * icd9编码自动补全
     * @param q
     * @param limit
     * @return
     * @author ZhuQ
     * @date 2017-05-12 15:08:59
     */
    public List<Icd9ItemClass> findAutoCompleteList(Icd9ItemClass icd9ItemClass,String q,String limit) {
        return dao.findAutoCompleteList(icd9ItemClass,q,limit);
    }
}